home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 013 / mv21.arc / CP.DOC next >
Encoding:
Text File  |  1986-08-10  |  2.5 KB  |  95 lines

  1.     CP - Copy files (Rainbow or IBM PC); Version 2.2
  2.     
  3.         cp [-diqv!] file,file,... target
  4.     
  5.     Filespecs may contain a drive and/or a directory specification
  6.     and wildcard characters.
  7.     
  8.     If only one file is being copied, the target may be a file name
  9.     or a drive and/or directory name.  In the latter case, the
  10.     source file name is used in the target drive and/or directory. 
  11.     If multiple filespecs are given or wildcard characters are
  12.     used, the target must be a drive and/or directory name only. 
  13.     The file name of each file copied is used to make the target
  14.     file name.
  15.     
  16.     If a source filespec contains a drive and/or directory, these
  17.     are passed along to the subsequent source filespecs until
  18.     reassigned; thus
  19.     
  20.         cp \src\*.c,*.obj,\exe\*.* b:
  21.     
  22.     is the same as
  23.     
  24.         cp \src\*.c,\src\*.obj,\exe\*.* b:
  25.     
  26.     and
  27.     
  28.         cp b:bob,carol,\tmp\ted,alice \bed
  29.     
  30.     is shorthand for
  31.     
  32.         cp b:bob,b:carol,b:\tmp\ted,b:\tmp\alice \bed
  33.     
  34.     If a target file exists, CP normally asks for verification
  35.     before overwriting.
  36.     
  37.     If there is not enough room on the target disk for the copy,
  38.     the program pauses while the user changes disks; the copy then
  39.     proceeds.
  40.  
  41.     Options:    
  42.  
  43.     -d (delete after copy)
  44.  
  45.     The source file is deleted without confirmation if the copy was
  46.     successful.
  47.  
  48.     -i (input)
  49.  
  50.     The list of files to copy is taken from the standard input rather
  51.     than the command line.  Thus with -i the format of cp is
  52.  
  53.         cp -i [-dqv!] target
  54.  
  55.     This is useful when using cp as a filter. e.g.
  56.  
  57.         ls -fm|cp -i a:
  58.  
  59.     copies files in order from smallest to largest.  This insures that
  60.     the most files will be copied to a: before it fills.
  61.  
  62.     -q (quiet)
  63.         
  64.     Supresses informational    copy messages.
  65.     
  66.     -v (verify)
  67.         
  68.     Causes user confirmation to be requested before copying.  At
  69.     each file prompt the user answers either Y (do the copy), ! (do
  70.     the copy and don't ask for confirmation on future files), or N
  71.     (don't copy this file).  Any other answer is the same as N.
  72.     
  73.     -! (hammer!)
  74.         
  75.     Supresses the verification which is normally requested (even
  76.     without -v) before overwriting an existing file.
  77.  
  78.     Options may be combined as in
  79.  
  80.         cp -q! ...
  81.     
  82.     The CP! command is a shorthand for cp -!.  Usage is
  83.     
  84.         cp! [-diq] file,file,... target
  85.  
  86.     Copyright (c) 1985,1986, by Bryan Higgins.  This program may be
  87.     distributed freely as long as it is not sold for profit.
  88.  
  89.     The author may be reached at
  90.     
  91.         1802 Channing Way
  92.         Berkeley, CA 94703
  93.     
  94.     One of the Kramden Utilities.
  95.